package com.easygo.client;

import com.easygo.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("EASYGO-GOODS-SERVER")
public interface GoodsClient {
    @GetMapping("/goods_list/{category1Id}")
    public List<Goods> getGoodsByCategory1Id(@PathVariable Long category1Id);
}
